package org.yanfengying.pay.domain;

import java.math.BigDecimal;
import java.util.Date;
import org.yanfengying.utils.domain.BastDomain;

/**
 * <p>
 * 用户账户
 * </p>
 *
 * @author yanfengying
 * @since 2022-11-01
 */
public class Account extends BastDomain{

    private static final long serialVersionUID = 1L;

    private Long id;
    private Date createTime;
    private Date updateTime;
    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 可用金额
     */
    private Integer useableBalance;
    /**
     * 冻结金额
     */
    private Integer frozenBalance;
    /**
     * 积分
     */
    private Integer creditBalance;
    private String salt;
    /**
     * 支付密码 md5加密+加盐
     */
    private String payPassword;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getUseableBalance() {
        return useableBalance;
    }

    public void setUseableBalance(Integer useableBalance) {
        this.useableBalance = useableBalance;
    }

    public Integer getFrozenBalance() {
        return frozenBalance;
    }

    public void setFrozenBalance(Integer frozenBalance) {
        this.frozenBalance = frozenBalance;
    }

    public Integer getCreditBalance() {
        return creditBalance;
    }

    public void setCreditBalance(Integer creditBalance) {
        this.creditBalance = creditBalance;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getPayPassword() {
        return payPassword;
    }

    public void setPayPassword(String payPassword) {
        this.payPassword = payPassword;
    }

    @Override
    public String toString() {
        return "Account{" +
        ", id=" + id +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", userId=" + userId +
        ", useableBalance=" + useableBalance +
        ", frozenBalance=" + frozenBalance +
        ", creditBalance=" + creditBalance +
        ", salt=" + salt +
        ", payPassword=" + payPassword +
        "}";
    }
}
